<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@taglib uri="/roomUtil"  prefix="roomUtil"%>
    <%@taglib uri="/dateUtil"  prefix="dateUtil"%>
<c:if test="${empty requestScope.reserves }">
		<center><h1>没有预定信息</h1></center>
</c:if>
<c:if test="${!empty requestScope.reserves }">
	<!-- 资源管理模块 -->
	<div role="tabpanel" class="tab-pane active" id="sour">
		<div class="check-div form-inline">
			<br><br>
		</div>
		<div class="data-div">
			<div class="row tableHeader">
				<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1 ">
					预定id
				</div>
				<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">
					预定房间
				</div>
				<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
					入住人手机号
				</div>
				<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
					预计入住日期
				</div>
				<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
					预计退房日期
				</div>
				<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
					预定时间
				</div>
				<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">
					预定费用
				</div>
			</div>
			<div class="tablebody">
				<div id="collapseAccount" class="collapse in" aria-expanded="true">
					<c:forEach items="${requestScope.reserves }" var="reserve">
						<div class="row">
							<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1 levl1 ">${reserve.id }
							</div>
							<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1 levl1 ">${roomUtil:getRoomName(reserve.roomId) }
							</div>
							<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 levl1 ">${reserve.phone }
							</div>
							<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 levl1 ">${reserve.inDate }
							</div>
							<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 levl1 ">${reserve.outDate }
							</div>
							<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 levl1 ">${dateUtil:datetime2str(reserve.resTime) }
							</div>
							<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1 levl1 ">${reserve.cost }
							</div>
						</div>
					</c:forEach>
	  			</div>
			</div>
		</div>
	</div>
</c:if>				
						
						
						